package org.yohann.ai.provider;

import org.yohann.ai.pojo.PagePath;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class PagePathProvider {
    private static final List<PagePath> pathList = new ArrayList<>();

    static {
        pathList.add(new PagePath("首页", "/index", "系统首页"));
        pathList.add(new PagePath("账单", "/billing", "查看账单"));
        pathList.add(new PagePath("服务", "/service", "查看服务"));
        pathList.add(new PagePath("工单", "/ticket", "查看工单"));
        pathList.add(new PagePath("支援", "/support", "技术支援"));
        pathList.add(new PagePath("设备", "/equipment", "查看设备"));
        pathList.add(new PagePath("优惠券", "/coupon", "查看优惠券"));
        pathList.add(new PagePath("请求回复", "/reply", "查看待回复"));
        pathList.add(new PagePath("接触记录", "/history", "查看接触记录"));
        pathList.add(new PagePath("发出内容", "/sent", "查看发出内容"));
        pathList.add(new PagePath("个人资料", "/profile", "查看个人资料"));
        pathList.add(new PagePath("宣传资料", "/promotion", "查看宣传资料"));
        pathList.add(new PagePath("携号转网", "/porting", "办理携号转网"));
        pathList.add(new PagePath("终止业务", "/termination", "终止业务"));
        pathList.add(new PagePath("账单调整", "/adjustment", "账单调整"));
    }

    public static List<PagePath> getAllPath() {
        return pathList;
    }

    public static List<String> getActionLog() {
        List<String> list = new ArrayList<>();
        Random random = new Random();
        for (int i = 0; i < random.nextInt(4, 8); i++) {
            int index = random.nextInt(pathList.size());
            list.add(pathList.get(index).getName());
        }
        return list;
    }
}
